//
//  CoreDataManager.h
//  Bicycle
//
//  Created by dllo on 16/5/6.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@interface CoreDataManager : NSObject
+(CoreDataManager *)shareInstance;

//临时数据库(只有这个能操作)
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
//model模型
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
//小助手/助理
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
//只有在调用这个方法的时候,数据才真正的存到了本地
- (void)saveContext;
//本地路径
- (NSURL *)applicationDocumentsDirectory;

@end
